Add #ifndef HID_CUSTOM_LAYOUT_HIDE_PRAGMA_MESSAGE #329
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently, on every build using this library, this message is printed:
(Or similar, depending on #define's and whether Arduino IDE or PlatformIO is used to build.)
I like to try and keep my errors/warnings/messages count at 0. This makes it easier to see if any in development changes have introduced new warnings (visually by length + color of build output), making for a more pleasant development experience. These messages are printed in scary yellow (PlatformIO) or red (Arduino IDE), and in Arduino IDE they're especially annoying since the build log panel is usually a very small portion of the screen.
Of course personally I would prefer removing the message entirely, but I assume you would not be ok with that (someone must've added it for some reason. maybe it reduces support load or something), so in this PR I'm proposing to at least add a way to disable the message via another #define. Since this is meant for people who're pretty sure they know what they want, I only added the #ifndef to the branch where a layout is already specified. And the default behavior is unchanged.
Does this seem like an acceptable compromise?